import axios from "axios"

const request = axios.create({
  baseURL: 'http://127.0.0.1:3000',

})
request.interceptors.response.use(
  response => {
    // 成功的回调
    return response.data
  },
  error => {
    // 失败的回调
    return Promise.reject(error);
  }
)

export default request